package com.qianli.cashmama.trade.repo;

import com.fqgj.common.api.Page;
import com.qianli.cashmama.trade.domain.model.TimeoutEvent;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: sm
 * Date: 2017/7/24
 * Time: 下午2:05
 */
public interface TimeoutRepository {

    /**
     * @param timeoutEvent
     */
    void store(TimeoutEvent timeoutEvent);

    /**
     * @param page
     * @param shardingItem
     * @return
     */
    List<TimeoutEvent> selectLatestListByPage(Page page, Integer type, Integer shardingItem);

    /**
     * @param timeoutEvent
     */
    void delete(TimeoutEvent timeoutEvent);
}
